<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>固定定位的基本使用</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            height: 2000px;
        }
        div{
            width: 300px;
            height: 1000px;
            background: red;
        }
        p{
            width: 200px;
            height: 200px;
            background: blue;
            position: fixed;
            bottom: 100px;
            left: 100px;
        }
    </style>
</head>
<body>
    <div></div>
    <p></p>
</body>
</html>